package com.sweetguy.dto;

import com.sweetguy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Schema(name = "评论修改DTO")
@Data
public class ReportUpdateDTO implements Serializable, RE {

    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "集次ID，集次表外键")
    private Long fkEpisodeId;

    @Schema(description = "举报人ID，举报表外键")
    private Long fkUserId;

    @Schema(description = "举报内容")
    @Pattern(regexp =CONTENT_RE , message = CONTENT_RE_MSG)
    private String content;
}
